package com.ys.erp.framework.response;


import lombok.Data;

import java.util.List;

/**
 * @author lwj
 * @date 2021/5/1
 */
@Data
public class PageDTO<T> {

    private Long pages;

    private Long total;

    private List<T> records;

    /**
     * 统一构造器
     *
     * @param pages pages
     * @param total total
     * @param records records
     */
    public PageDTO(Long pages, Long total, List<T> records) {
        this.records = records;
        this.pages = pages;
        this.total = total;
    }

}
